package dao;

import hibernate.HibernateSessionFactory;
import org.hibernate.Session;


/**
 * Data access object (DAO) for domain model
 * @author MyEclipse Persistence Tools
 */
public class BaseHibernateDAO implements IBaseHibernateDAO {
	public void clear()
        {
            getSession().clear();
        }
	public Session getSession() {
		return HibernateSessionFactory.getSession();
	}
        
    public void beginTransaction() {
        getSession().getTransaction().begin();
    }

    public void commit() {
        getSession().getTransaction().commit();
    }
	
}